﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using BeinDemo1.ViewModel;

namespace BeinDemo1
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// <para>Einstiegspunkt der Anwendung: startet MainWindow.xaml und setzt den DataContext auf <see cref="MainWindowVM"/></para>
    /// </summary>
    public partial class App : Application
    {
        /// <summary>
        /// Raises the <see cref="E:System.Windows.Application.Startup" /> event.
        /// </summary>
        /// <param name="e">A <see cref="T:System.Windows.StartupEventArgs" /> that contains the event data.</param>
        protected override void OnStartup(StartupEventArgs e) {
            base.OnStartup(e);
            MainWindow window = new MainWindow();

            var viewModel = new MainWindowVM();
            window.DataContext = viewModel;
            //window.Show();
        }

        //private void OnExit(object sender, ExitEventArgs e) {
        //    BeinDemo1.Properties.Settings.Default.Save();
        //}

    }
}
